<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
@php
header('content-type:text/plain;charset=utf-8');
// 设置时区
date_default_timezone_set(env('USER_TIMEZONE', 'PRC'));
$articlesJSON = [];
@endphp
{{-- @dump($articles) --}}
@include('custom.phpFunction')
@foreach ($articles as $article)
@php
array_push($articlesJSON,json_encode($article));
@endphp
@endforeach
{{ json_encode($articlesJSON) }}